﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogAppExt.Models
{
    /// <summary>
    /// User class to store user information
    /// </summary>
    public class User
    {
        //Generate next unique user ID
        private static int NextUserID = 0;

        
        public string UserName { get; set; }
        public string NameFirst { get; set; }
        public string NameLast { get; set; }
        public string Image { get; set; }

        private int userID;

        public int Id
        {
            get { return userID; }
        }

        public User(string userName, string nameFirst, string nameLast, string image)
        {
            UserName = userName;
            NameFirst = nameFirst;
            NameLast = nameLast;
            Image = image;
            userID = NextUserID++;
        }
        
    }
}